# -*- coding:utf-8 -*-
"""
各组件样式
"""
import os
from PySide2.QtGui import QFont

class STYLES:
    ROOT = os.path.dirname(os.path.dirname(__file__))
    IMG_PATH = os.path.join(ROOT,'imgs')
    PEN_IMG_PATH = os.path.join(IMG_PATH,'pen.png')


    COLOR_STYLES = "background-color:rgb(75,75,75);color:rgb(200,200,200)"

    FLAG_COLORS = ['#ff1200','#ff8f00','#fff000','#3ce821','#21d8e8','#213fe8','#9921e8']

    BLANK_COLOR = '#FF7F24'

    FLAG_BTN_BLANK = '''QPushButton{color:black}
                                  QPushButton:hover{color:#FF7F24}
                                   QPushButton{background-color:#CFCFCF}
                                  QPushButton{border:0px}
                                  QPushButton{border-radius:5px}
                                  QPushButton{padding:1px 1px}'''
    BTN_STYLE_B = '''QPushButton{color:black}
                                  QPushButton:hover{color:#FF7F24}
                                   QPushButton{background-color:#CFCFCF}
                                  QPushButton{border:2px}
                                  QPushButton{font-size:18px}
                                  QPushButton{border-radius:3px}
                                  QPushButton{padding:1px 1px}'''

    TOOLBTN_FLAT = '''QToolButton{border:0px}
                      QToolButton{padding:0px 0px}'''

#ebebeb
    FLAG_BTN_RED = '''QPushButton{color:#ff1200}
                                  QPushButton:hover{color:#FF7F24}
                                   QPushButton{background-color:#CFCFCF}
                                  QPushButton{border:2px}
                                  QPushButton{border-radius:5px}
                                  QPushButton{padding:1px 1px}'''

    FLAG_BTN_ORANGE = '''QPushButton{color:#ff8f00}
                                  QPushButton:hover{color:#FF7F24}
                                   QPushButton{background-color:#CFCFCF}
                                  QPushButton{border:2px}
                                  QPushButton{border-radius:5px}
                                  QPushButton{padding:1px 1px}'''

    FLAG_BTN_YELLOW = '''QPushButton{color:#fff000}
                                  QPushButton:hover{color:#FF7F24}
                                   QPushButton{background-color:#CFCFCF}
                                  QPushButton{border:2px}
                                  QPushButton{border-radius:5px}
                                  QPushButton{padding:1px 1px}'''

    FLAG_BTN_GREEN  = '''QPushButton{color:#3ce821}
                                  QPushButton:hover{color:#FF7F24}
                                   QPushButton{background-color:#CFCFCF}
                                  QPushButton{border:2px}
                                  QPushButton{border-radius:5px}
                                  QPushButton{padding:1px 1px}'''

    FLAG_BTN_YOUNG  = '''QPushButton{color:#21d8e8}
                                  QPushButton:hover{color:#FF7F24}
                                   QPushButton{background-color:#CFCFCF}
                                  QPushButton{border:2px}
                                  QPushButton{border-radius:5px}
                                  QPushButton{padding:1px 1px}'''

    FLAG_BTN_BLUE  = '''QPushButton{color:#213fe8}
                                  QPushButton:hover{color:#FF7F24}
                                   QPushButton{background-color:#CFCFCF}
                                  QPushButton{border:2px}
                                  QPushButton{border-radius:5px}
                                  QPushButton{padding:1px 1px}'''

    FLAG_BTN_PURPLE  = '''QPushButton{color:#9921e8}
                                  QPushButton:hover{color:#FF7F24}
                                   QPushButton{background-color:#CFCFCF}
                                  QPushButton{border:2px}
                                  QPushButton{border-radius:5px}
                                  QPushButton{padding:1px 1px}'''


# Label

    PLAYED_COLOR = "background-color:#31c94d"
 